package com.team.dutchboy.config.sentinel;

import com.team.dutchboy.service.FeignDemo;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

//feign容错类，无法获得具体异常
//实现feign服务接口，调用失败就会进入容错逻辑调用对应方法
@Component
public class FeignFallback implements FeignDemo {
    @Override
    public String callPush(String message) {
        return "push异常";
    }

    @Override
    public String remoteTest(String a) {
        return "test异常";
    }

    @Override
    public String testSeata(String a) {
        return "seata异常";
    }
}
